package com.petsystem.system.domain.bo;

import com.petsystem.common.core.validate.AddGroup;
import com.petsystem.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.petsystem.common.core.domain.BaseEntity;

/**
 * 订单信息业务对象 t_order
 *
 * @author petsystem
 * @date 2022-02-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("订单信息业务对象")
public class TOrderBo extends BaseEntity {

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id", required = true)
    @NotNull(message = "订单id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 宠物id
     */
    @ApiModelProperty(value = "宠物名称", required = true)
    private String petName;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户名称", required = true)
    private String userName;

    /**
     * 宠物id
     */
    @ApiModelProperty(value = "宠物id", required = true)
    @NotNull(message = "宠物id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long petId;

    /**
     * 申请原因
     */
    @ApiModelProperty(value = "申请原因", required = true)
//    @NotBlank(message = "申请原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reason;

    /**
     * 审核状态（0代表待审核 1代表已通过 2代表未通过）
     */
    @ApiModelProperty(value = "审核状态（0代表待审核 1代表已通过 2代表未通过）", required = true)
//    @NotBlank(message = "审核状态（0代表待审核 1代表已通过 2代表未通过）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String checkStatus;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true)
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


    /**
     * 查询类型(adopt:领养 sale:售出)
     */
    @ApiModelProperty(value = "查询类型", required = true)
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 操作类型(adopt:领养 sale:售出)
     */
    @ApiModelProperty(value = "操作类型", required = true)
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String handleType;


}
